package com.wispx.gateway.config.config;

import lombok.Data;

/**
 * Netty 服务端配置
 */
@Data
public class NettyConfig {
    /**
     * eventLoopBossGroup 线程数，处理accept连接请求
     */
    private int eventLoopBossGroupNum = 1;

    /**
     * eventLoopWorkerGroup 线程数，处理 read/write读写请求
     */
    private int eventLoopWorkerGroupNum = Runtime.getRuntime().availableProcessors() * 2;

    /**
     * 消息内容最大值，64MB
     */
    private int maxLength = 64 * 1024 * 1024;
}
